rem 	USAGE:
rem 	build <Target>
rem 	Examples:
rem 	build Release
rem 	or
rem	build FullVersion



set BuildDir=c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild


rmdir /S /Q Build
mkdir Build
mkdir Build\Binaries
svn checkout https://911-career-kit.googlecode.com/svn/trunk/ Build
@echo --- Building project
%BuildDir% Build\src\911CareerKit.sln /property:OutDir=..\..\Binaries\ /p:Configuration=Release

del /Q Build\Binaries\*.pdb
del /Q Build\Binaries\DevExpress*.xml
del /Q Build\Binaries\System.*.*
del /Q Build\Binaries\*.Test.*
del /Q Build\Binaries\*Accessor.*
del /Q Build\Binaries\*.manifest
del /Q Build\Binaries\Autorun.*

mkdir Build\Release
mkdir Build\Release\Binaries
xcopy /E Build\Binaries Release\

src\libraries\7zip\7za.exe a -tzip release.zip Release\*.* -r
if NOT "%1"=="" rename release.zip "%1.zip"

rmdir /s /q Build
rmdir /s /q Release
